package com.jeeplus.test.jlnu.student.service.impl;

import com.jeeplus.test.jlnu.student.domain.entity.BsssStudentRewards;
import com.jeeplus.test.jlnu.student.mapper.BsssStudentRewardsMapper;
import com.jeeplus.test.jlnu.student.service.BsssStudentRewardsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BsssStudentRewardsServiceImpl implements BsssStudentRewardsService {

    @Autowired
    BsssStudentRewardsMapper bsssStudentGraduateMapper;


    @Override
    public int saveRewards(BsssStudentRewards bsssStudentRewards) {
        return bsssStudentGraduateMapper.insert(bsssStudentRewards);
    }

    @Override
    public List<BsssStudentRewards> getRewards(String studentId) {
        return bsssStudentGraduateMapper.getByStudentIdRewards(studentId);
    }

    @Override
    public int updateRewards(BsssStudentRewards bsssStudentRewards) {
        return bsssStudentGraduateMapper.updateById(bsssStudentRewards);
    }

    @Override
    public int deleteRewards(List<Long> ids) {
        return bsssStudentGraduateMapper.deleteBatchIds(ids);
    }
}
